package com.bwie.parkdemo.adapter;

import android.support.annotation.NonNull;

import com.bwie.parkdemo.R;
import com.bwie.parkdemo.mvvm.model.entity.DepartmentEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

public class DepartmentAdapter extends BaseQuickAdapter<Object,BaseViewHolder> {

    public DepartmentAdapter() {
        super(R.layout.item_department);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Object item) {
        DepartmentEntity.Values entity = (DepartmentEntity.Values) item;
        helper.setText(R.id.department_item_tv,entity.departmentName);
    }
}
